//
/******************************************************
        File name:    main.c
        Author:       Bitat (陆叁柒)
        Gitee :       https://gitee.com/bitat
        Email :       737166381@qq.com
        History:      2023/1/9
*******************************************************/


#include <stdio.h>


int main()
{
    int i = 0;
    float sum = 0;
    float sum1 = 0;
    for(i = 1; i <= 100; i+=2)
    {
        sum +=1.0/i;
    }
    for(i = 2; i <= 100; i+=2)
    {
        sum1 +=1.0/i;
    }
    printf("%f\n",sum-sum1);
    
    return 0;
}
